package com.rdk.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.rdk.entity.ShareInteract;
import com.rdk.entity.TShareMessage;
import com.rdk.utils.BusinessException;


public interface TShareMessageService extends BaseService<TShareMessage>{
	public int getUnreadMessageCount(String userId);
	public ShareInteract findShareInteract(String loginUserId, String shareId);
	public void commentGroup(JSONArray comments);
	public void at(String shareId, String userId, List<String> atUsers);
	public void forward(String shareId, String shareUserId, String userId);
	public JSONObject comment(String shareId, HttpServletRequest request,String userId) throws BusinessException;
	
	public JSONArray findMessages(String userId, String timestamp, int offset) throws BusinessException;
	
	public void addLike(String shareId,String userId,String commentTo);
	
	public void cancelLike(String shareId, String userId);
	
	public void deleteComment(String messageId, String userId) throws BusinessException;
}
